package com.lz.sports.api

import chen.you.comm.log.LogHeaders
import com.lz.comm.net.HttpResult
import com.lz.sports.bean.UserBean
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Url

/**
 *  author: you : 2022/11/17
 */
interface TestApi {

    companion object {
        const val URL = "http://jsonplaceholder.typicode.com/todos/1"

        const val URL2 = "https://www.google.com/"
    }

    @GET
    fun getUserBean(@Url url: String): Flow<UserBean>

    @GET
    fun getGithub(@Url url: String): Flow<HttpResult<Any>>

    @GET
    @Headers(LogHeaders.OFFLINE)
    fun check(@Url url: String): Flow<HttpResult<Any>>
}